<?php

namespace App\Admin\Controllers;

use Encore\Admin\Layout\Content;
use App\Http\Controllers\Controller;
use App\Admin\Extensions\DashboardList;
use App\Admin\Extensions\DashboardBoxes;
use App\Admin\Extensions\DashboardCharts;

class DashboardController extends Controller
{
    public function index(Content $content)
    {
        return $content
            ->title('Littleshop Dashboard')
            ->description('Dream in future and believe in future...')
            ->row(app(DashboardBoxes::class)->countBoxes())
	        ->row(app(DashboardCharts::class)->countCharts())
	        ->row(app(DashboardList::class)->newRecordsList());
    }
}
